package com.example.makerspace.service;

import com.example.makerspace.dto.MessageDTO;
import com.example.makerspace.dto.PageRequest;
import com.example.makerspace.dto.Result;

public interface MessageService {
    Result addMessage(MessageDTO messageDTO);

    Result updateMessage(MessageDTO messageDTO);

    Result deleteMessage(Integer id);

    Result selectMessage(PageRequest pageRequest);

    Result selectMessageByUserName(PageRequest pageRequest);

    Result selectMessageDetail(Integer id,String username);

    Result showAllUnRead(String username);


    Result showAllSystemUnRead(String username);

    Result showAllNoticeUnRead(String username);
}
